﻿using System;
using System.Collections.Generic;
using ExpenseSystem.Common.BaseModel;

namespace ExpenseSystem.Model
{
    [TableName("BAS_SUITEDETAIL")]
    public class SuiteDetailModel: NormalModel
    {
        private long _suiteid;
        private long _productionid;
        private decimal _quantity1;
        private decimal _quantity2;
        private long _unitgroupid;
        private long _unitid;
        private long _salesunitid;

        public virtual long SuiteId
        {
            get { return _suiteid; }
            set
            {
                if (_suiteid == value)
                    return;
                _suiteid = value;
                if (!PropertyUpdated.Contains("SuiteId"))
                    PropertyUpdated.Add("SuiteId");
            }
        }
        public virtual long ProductionId
        {
            get { return _productionid; }
            set
            {
                if (_productionid == value)
                    return;
                _productionid = value;
                if (!PropertyUpdated.Contains("ProductionId"))
                    PropertyUpdated.Add("ProductionId");
            }
        }
        public virtual long UnitGroupId
        {
            get { return _unitgroupid; }
            set
            {
                if (_unitgroupid == value)
                    return;
                _unitgroupid = value;
                if (!PropertyUpdated.Contains("UnitGroupId"))
                    PropertyUpdated.Add("UnitGroupId");
            }
        }
        public virtual long UnitId
        {
            get { return _unitid; }
            set
            {
                if (_unitid == value)
                    return;
                _unitid = value;
                if (!PropertyUpdated.Contains("UnitId"))
                    PropertyUpdated.Add("UnitId");
            }
        }
        public virtual long SalesUnitId
        {
            get { return _salesunitid; }
            set
            {
                if (_salesunitid == value)
                    return;
                _salesunitid = value;
                if (!PropertyUpdated.Contains("SalesUnitId"))
                    PropertyUpdated.Add("SalesUnitId");
            }
        }
        public virtual decimal Quantity1
        {
            //标准单位数量
            get { return _quantity1; }
            set
            {
                if (_quantity1 == value)
                    return;
                _quantity1 = value;
                if (!PropertyUpdated.Contains("Quantity1"))
                    PropertyUpdated.Add("Quantity1");
            }
        }
        public virtual decimal Quantity2
        {
            //销售单位数量
            get { return _quantity2; }
            set
            {
                if (_quantity2 == value)
                    return;
                _quantity2 = value;
                if (!PropertyUpdated.Contains("Quantity2"))
                    PropertyUpdated.Add("Quantity2");
            }
        }
    }
}
